#pragma once
#include "stmt.h"
#include "Var.h"
#include "Expr.h"

class Def :
    public Stmt
{
public:
    Def(std::string _id, std::string _para, Expr *_expr, vm *_env, int _ln);
    virtual ~Def(void);

    virtual int Eval();


private:
    std::string id;
    std::string para;
    Expr *bodyExpr;
    vm *env;
};

